#include <stdio.h>
int main(void){
  char a,b[8],c=0;
  a = getchar();
  for(;c++<=8;){
    (a>2*(a/=2)) ? b[7-(c-1)]='1' : b[7-(c-1)]='0';
    putchar((int)b);
  }
  return 0;
}
